Optimal. Leaf size=23 \[ \frac {2}{9} (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {927}
\begin {gather*} \frac {2}{9} (x+1)^{3/2} \left (x^2-x+1\right )^{3/2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 927
Rubi steps
\begin {align*} \int x^2 \sqrt {1+x} \sqrt {1-x+x^2} \, dx &=\frac {2}{9} (1+x)^{3/2} \left (1-x+x^2\right )^{3/2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 10.04, size = 23, normalized size = 1.00 \begin {gather*} \frac {2}{9} (1+x)^{3/2} \left (1-x+x^2\right )^{3/2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 23, normalized size = 1.00
method | result | size |
gosper | \(\frac {2 \left (1+x \right )^{\frac {3}{2}} \left (x^{2}-x +1\right )^{\frac {3}{2}}}{9}\) | \(18\) |
default | \(\frac {2 \left (x^{3}+1\right ) \sqrt {1+x}\, \sqrt {x^{2}-x +1}}{9}\) | \(23\) |
risch | \(\frac {2 \left (x^{3}+1\right ) \sqrt {1+x}\, \sqrt {x^{2}-x +1}}{9}\) | \(23\) |
elliptic | \(\frac {\sqrt {\left (1+x \right ) \left (x^{2}-x +1\right )}\, \left (\frac {2 x^{3} \sqrt {x^{3}+1}}{9}+\frac {2 \sqrt {x^{3}+1}}{9}\right )}{\sqrt {1+x}\, \sqrt {x^{2}-x +1}}\) | \(53\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.86, size = 22, normalized size = 0.96 \begin {gather*} \frac {2}{9} \, {\left (x^{3} + 1\right )} \sqrt {x^{2} - x + 1} \sqrt {x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.11, size = 22, normalized size = 0.96 \begin {gather*} \frac {2}{9} \, {\left (x^{3} + 1\right )} \sqrt {x^{2} - x + 1} \sqrt {x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{2} \sqrt {x + 1} \sqrt {x^{2} - x + 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 67 vs.
\(2 (17) = 34\).
time = 0.99, size = 67, normalized size = 2.91 \begin {gather*} \frac {2}{315} \, {\left ({\left (5 \, {\left (7 \, x - 23\right )} {\left (x + 1\right )} + 258\right )} {\left (x + 1\right )} - 213\right )} \sqrt {{\left (x + 1\right )}^{2} - 3 \, x} \sqrt {x + 1} + \frac {2}{105} \, {\left (3 \, {\left (5 \, x - 12\right )} {\left (x + 1\right )} + 71\right )} \sqrt {{\left (x + 1\right )}^{2} - 3 \, x} \sqrt {x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.62, size = 22, normalized size = 0.96 \begin {gather*} \frac {2\,\left (x^3+1\right )\,\sqrt {x+1}\,\sqrt {x^2-x+1}}{9} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________